package com.sinopec.basemodule.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 类描述：二维码信息<br/>
 * 创建人：lwj<br/>
 * 创建时间：2019/7/25 14:10 <br/>
 */
public class QrCodeInfoModel implements Parcelable {

    /**
     * 二维码code
     */
    private String qrCode;
    /**
     * 定位信息
     */
    private String location;
    /**
     * 时间戳
     */
    private String timestamp;

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    /////////////////////
    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.qrCode);
        dest.writeString(this.location);
        dest.writeString(this.timestamp);
    }

    public QrCodeInfoModel() {
    }

    protected QrCodeInfoModel(Parcel in) {
        this.qrCode = in.readString();
        this.location = in.readString();
        this.timestamp = in.readString();
    }

    public static final Creator<QrCodeInfoModel> CREATOR = new Creator<QrCodeInfoModel>() {
        @Override
        public QrCodeInfoModel createFromParcel(Parcel source) {
            return new QrCodeInfoModel(source);
        }

        @Override
        public QrCodeInfoModel[] newArray(int size) {
            return new QrCodeInfoModel[size];
        }
    };
}
